Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setup SWVP toggle for mixed mode devices #188

Merged
merged 1 commit into from
Oct 27, 2024
Merged

Conversation

WinterSnowfall
Copy link
Contributor

Not entirely sure why this wasn't being done in the first place, as devices created with D3DCREATE_MIXED_VERTEXPROCESSING expect this to work properly and there are some games that require dynamically switching between the two.

In the case of either D3DCREATE_SOFTWARE_VERTEXPROCESSING or D3DCREATE_HARDWARE_VERTEXPROCESSING devices, the call to SetSoftwareVertexProcessing() will simply fail, but we can safely ignore that. In fact D3D8 will never return anything other than D3D_OK for any SetRenderState() calls.

@WinterSnowfall
Copy link
Contributor Author

WinterSnowfall commented Oct 27, 2024

I've refactored this to be a bit more elegant and not spam D3D9 with calls we know would fail anyway. The end effect is identical.

@crosire crosire merged commit 3e293ca into crosire:main Oct 27, 2024
@WinterSnowfall WinterSnowfall deleted the swvp branch October 27, 2024 17:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants